export interface defaultData {
  title: string;
  id?: string;
  children:
    | {
        title: string;
        id?: string;
        children: never[];
        value: string;
      }[]
    | [];
  value: string;
}

export interface PropsType {
  data: any;
  placeholder?: string;
  onChange: (res: defaultData[]) => void;
}